home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 April / EnigmA AMIGA RUN 17 (1997)(G.R. Edizioni)(IT)[!][issue 1997-04][EAR-CD].iso / EARCD / text / hyper / hsc_source.lha / hsc / source / hsclib / skip.h < prev    next >
C/C++ Source or Header  |  1996-10-30  |  1KB  |  52 lines

  1. /*
  2.  * hsclib/skip.h
  3.  *
  4.  * functions for skipping several things
  5.  *
  6.  */
  7.  
  8. #ifndef HSCLIB_SKIP_H
  9. #define HSCLIB_SKIP_H
  10.  
  11. #include "ugly/utypes.h"
  12. #include "ugly/infile.h"
  13.  
  14. #include "hsclib/hscprc.h"
  15.  
  16. /* states for eot_reached() */
  17. #define TGST_TAG     0          /* in tag */
  18. #define TGST_REF     1          /* in attribute reference */
  19. #define TGST_QUOTE   2          /* inside single quote */
  20. #define TGST_DQUOTE  3          /* inside double quote */
  21. #define TGST_END    10          /* end reached */
  22. #define TGST_ERR    99          /* error occured */
  23.  
  24. /* states for eoc_reached() */
  25. #define CMST_TEXT     0         /* after normal text (or inside tag) */
  26. #define CMST_STAR     1         /* after "*" */
  27. #define CMST_TAG      2         /* after "<" */
  28. #define CMST_END     10         /* after "*>" */
  29. #define CMST_ERR     99         /* error occured */
  30.  
  31. #ifndef NOEXTERN_SKIP_H
  32.  
  33. /*
  34.  * global funcs
  35.  */
  36. extern BOOL skip_next_lf(HSCPRC * hp);
  37. extern BOOL skip_hsc_comment(HSCPRC * hp);
  38.  
  39. extern BOOL skip_until_eot_state(HSCPRC * hp, BYTE * state, EXPSTR * logstr);
  40. extern BOOL skip_until_eot(HSCPRC * hp, EXPSTR * logstr);
  41. #if 1 /* TODO: get rid of this */
  42. extern BOOL eot_reached(HSCPRC * hp, BYTE * state);
  43. #endif
  44. extern BOOL eoc_reached(HSCPRC * hp, BYTE * state, LONG * nest);
  45.  
  46. extern BOOL skip_until_tag(HSCPRC * hp, EXPSTR * tagfound, STRPTR tagstoplist, STRPTR tagnest);
  47.  
  48. #endif /* NOEXTERN_HSCLIB_SKIP_H */
  49.  
  50. #endif /* HSCLIB_SKIP_H */
  51.  
  52.